<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("inc.head","","0");?>
<div>
    <?php QG_C_TEMPLATE::p("inc.search","","0");?>
</div>

<div id="bd">
    <div id="shop" class="yui-g">
        <div id="lc" class="yui-u first"> 
            <div id="md_shopsbcate" class="shopscbox">
                <div class="hd"><a href="shop.php"><em>全系列</em></a></div>
        		<div class="bd">
        		    <ul>
            		    <?php $_i=0;$left_catelist=(is_array($left_catelist))?$left_catelist:array();foreach($left_catelist AS  $key=>$value){$_i++; ?>
                		<li <?php if($value[id] == $id){?>class="on"<?php } ?>><a href="shop.php?id=<?php echo $value[id];?>"><?php echo $value[catename];?></a></li>
                		<?php } ?>
        		    </ul>

        		</div>
                <div class="ft"></div>
            </div>
        </div>
        <div id="rc" class="yui-u"> 
            <div id="md_shoplist">
                <div class="hd"></div>
        		<div class="bd">
            		<ul class="list clearfix">
            		    <?php foreach($msglist as $key=>$value){?>
            			<li>
            			    <div class="pic"><a href="productInfo.php?id=<?php echo $value['id']?>" ><img src="<?php if($value['thumbfile']!=''){echo $value['folder'].$value['thumbfile'];}else{echo 'templates/zh/em/images/nopicture.gif';}?>" /></a></div>
            			    <a class="name" href="productInfo.php?id=<?php echo $value['id']?>" ><?php echo $value['cut_subject']?></a>
                            <span class="price"><?php echo $value['ext_marketprice']?></span>
                        </li>
            			<?php }for($i=0;$i<(20-count($msglist));$i++){?>
                        <li></li>
                        <?php }?>
            		</ul>
                    <div class="pager"><?php echo $pagelist;?></div>
                </div>
        		<div class="ft"></div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
document.getElementById("lc").style.height = document.getElementById("rc").offsetHeight + "px";
</script>

<?php QG_C_TEMPLATE::p("inc.foot","","0");?>